package com.fuhe.chen.vendingmachine.dao;

import com.fuhe.chen.vendingmachine.pojo.CommoditySpecification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommoditySpecificationDao {

    List<CommoditySpecification> findByCommodityId(@Param("commodity_id") Integer commodity_id);

    void add(CommoditySpecification specification);

    void update(CommoditySpecification specification);

    void delete(@Param("id") Integer id);
}
